package com.xmtlxx.oms.domain.bo;

import com.xmtlxx.common.core.domain.BaseEntity;
import com.xmtlxx.common.core.validate.AddGroup;
import com.xmtlxx.common.core.validate.EditGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 箱子领用业务对象 t_box_dept
 *
 * @author xmtlxx
 * @date 2022-12-07
 */

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel("箱子领用业务对象")
public class BoxDeptBo extends BaseEntity {

    /**
     * 主键ID
     */
    @ApiModelProperty(value = "主键ID")
    private String id;

    /**
     * 箱子ID
     */
    @ApiModelProperty(value = "箱子ID", required = true)
    @NotBlank(message = "箱子ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private String boxId;

    /**
     * 箱号
     */
    @ApiModelProperty(value = "箱号", required = true)
    @NotBlank(message = "箱号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String boxNo;

    /**
     * 领用部门
     */
    @ApiModelProperty(value = "领用部门", required = true)
    @NotNull(message = "领用部门不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long boxDept;

    /**
     * 状态(0-待使用,1-已使用)
     */
    @ApiModelProperty(value = "状态(0-待使用,1-已使用)")
    private String status;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    private String content;

    /**
     * 删除标识
     */
    @ApiModelProperty(value = "删除标识")
    private String delFlag;


}
